Telegram Group & Telegram Channel
Интересная история случилась вчера с одним из моих pet-projects, а именно с Rultor — он перестал работать. Оказалось, причина в том, что я в течение благополучных 11-ти лет (а именно тогда был создан этот проект, задолго до GitHub Actions) интерпретировал comment ID в GitHub API как Integer. Вчера же их количество перевалило за 2,147,483,647 и весь мой Java код стал понимать свежие номера комментариев как отрицательные числа. Пришлось перейти на Long и все заработало. Проблема 2K, однако, в малом масштабе.

ps. Unit тестов на сверх большие номера comment ID у меня конечно же не было :(



tg-me.com/yegor256news/1368
Create:
Last Update:

Интересная история случилась вчера с одним из моих pet-projects, а именно с Rultor — он перестал работать. Оказалось, причина в том, что я в течение благополучных 11-ти лет (а именно тогда был создан этот проект, задолго до GitHub Actions) интерпретировал comment ID в GitHub API как Integer. Вчера же их количество перевалило за 2,147,483,647 и весь мой Java код стал понимать свежие номера комментариев как отрицательные числа. Пришлось перейти на Long и все заработало. Проблема 2K, однако, в малом масштабе.

ps. Unit тестов на сверх большие номера comment ID у меня конечно же не было :(

BY @yegor256 news


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/yegor256news/1368

View MORE
Open in Telegram


@yegor256 news Telegram | DID YOU KNOW?

Date: |

Should I buy bitcoin?

“To the extent it is used I fear it’s often for illicit finance. It’s an extremely inefficient way of conducting transactions, and the amount of energy that’s consumed in processing those transactions is staggering,” the former Fed chairwoman said. Yellen’s comments have been cited as a reason for bitcoin’s recent losses. However, Yellen’s assessment of bitcoin as a inefficient medium of exchange is an important point and one that has already been raised in the past by bitcoin bulls. Using a volatile asset in exchange for goods and services makes little sense if the asset can tumble 10% in a day, or surge 80% over the course of a two months as bitcoin has done in 2021, critics argue. To put a finer point on it, over the past 12 months bitcoin has registered 8 corrections, defined as a decline from a recent peak of at least 10% but not more than 20%, and two bear markets, which are defined as falls of 20% or more, according to Dow Jones Market Data.

Telegram Gives Up On Crypto Blockchain Project

Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”

@yegor256 news from us


Telegram @yegor256 news
FROM USA